package com.starmark.gateway.project.provider.mapper;

import com.starmark.core.framework.base.SuperMapper;
import com.starmark.gateway.project.provider.entity.GatewayProjectAdmin;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author starmark
 * @since 2020-07-28
 */
@Mapper
public interface GatewayProjectAdminMapper extends SuperMapper<GatewayProjectAdmin> {


    /**
     *  删除工程下的管理员信息
     * @param projectId 工程ID
     */
    @Delete("delete from gateway_project_admin where project_id=#{projectId}")
    void deleteProjectAdmins(@Param("projectId") String projectId);
}